package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏西西
 * Date: 2023-09-01
 * Time: 14:53
 */
class A{
    public int x;
    public static  int y;
}
public class ThreadStatic {
    public static void main(String[] args) {
        A a1 = new A();
        A a2 = new A();
        a1.x = 10;
        a2.x = 20;
        System.out.println("a1.x = " +a1.x);
        System.out.println("a2.x = " +a2.x);
        a1.y =10;
        a2.y = 100;
        System.out.println("a1.y = " +a1.y);
        System.out.println("a2.y = " +a2.y);
    }
}
